<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		.box{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
		}
		.box1{
			width: 200px;
			height: 200px;
			background: blue url() 0 0 no-repeat;
		}
	</style>
	<script type="text/javascript">
		window.onload = function  () {
			box = document.getElementById('box');
			box1 = document.getElementById('box1');
			btn = document.getElementById('btn');
			son = document.getElementById('son');

			

			btn.onclick = function  () {

				son1= son.cloneNode(true);
				box1.appendChild(son1);

				// a = document.createElement('a');
				// a.href="http://www.baidu.com";
				// a.innerHTML="百度";
				
				// box.replaceChild(a,son);
				// box.insertBefore(a,son);
			}

		}

	</script>

</head>
<body>
	<input type="button" id="btn" value="增加">
	<div id="box" class="box">
		<p id="son">
			<a href="">son</a>
		</p>
	</div>
	<div class="box1" id="box1">
		
	</div>
</body>
</html>